function _createTwitterTableView()
{
	var tableView = Titanium.UI.createTableView({
		bottom: 50
	});
	
	return tableView;
}

function _createTwitterRefreshRow()
{
	var row = Titanium.UI.createTableViewRow({ height: 45, width: 'auto', className: 'twitter_refresh' });
	var view = Titanium.UI.createView({ height: 'auto', width: 'auto' });
	var label = Titanium.UI.createLabel({
		text: 'laat los om te verversen',
		height: 45,
		width: 'auto'
	});
	
	view.add(label);
	row.add(view);
	
	return row;
}

function _createTwitterRow(tweet, user, avatar)
{
	var row = Titanium.UI.createTableViewRow({ className: 'tweet_row', height: 'auto' });
	var imageView = _createTwitterAvatarImageView(avatar);
	var nameLabel = Titanium.UI.createLabel({ text: user, height: 'auto', top: 5, left: 60, right: 5 });
	var tweetLabel = Titanium.UI.createLabel({ text: tweet, height: 'auto', top: 25, left: nameLabel.left, right: 5 });
	
	row.add(tweetLabel);
	row.add(nameLabel);
	row.add(imageView);
	
	return row;
}

function _createTwitterAvatarImageView(url)
{
	var imageView = Titanium.UI.createImageView({
		image: url,
		left: 3,
		top: 3,
		height: 50,
		width: 50
	});
	
	return imageView;
}